package org.example;

public class CustomAnnotation {

        public static void main(String[] args) {
            var myCat = new Cat("Kitty");
            if (myCat.getClass().isAnnotationPresent(VeryImportant.class)){
                System.out.println("This animal is very important");
            } else {
                System.out.println("This animal is not very important");
            }

            Dog myDog = new Dog("WongWong");
            if (myDog.getClass().isAnnotationPresent(VeryImportant.class)){
                System.out.println("This animal is very important");
            } else {
                System.out.println("This animal is not very important");
            }




        }
        }





